<div id="body">
	<div id="body_left">
	<?
		$bAdmin = MODO_ADMIN ==  true;
		$ncMenuPadre = getParam('ncMenuPadre', 3);
		$ncMenu = getParam('ncMenu');
		$oMenu = new Menu('body_main', 'menuitem', 'menu', false);
		$oMenu->setMuestraSelector(true, " color: #FFF");
		if ( $bAdmin )
		{
			global $aConfigTables, $aInstallModules;
			foreach($aInstallModules as $aModulo )
			{
				$cPathMod = $aModulo['cPathModule'];
				if ( $aModulo['cMenu'] && file_exists( $aModulo['cMenu']) )
				{
					include_once( $aModulo['cMenu'] );
					$oMenu->addMatrix( $aMenu );
				}
			}			
		} else
		{
			if ( $ncMenuPadre )
			{
				
				$cSql = "SELECT ncMenu, cdMenu, cAccion, cParametros, bExpandido, cDescripcion FROM gtMenu WHERE ncEstadoPublicacion = 2 AND ncMenuPadre = $ncMenuPadre ORDER BY nOrden";
				$nqItems = $this->oDatabase->total($cSql);
				if ( $nqItems > 0 )
				{
					$oRs = $this->oDatabase->recordset($cSql);
					while ( $oRs->moveNext() )
					{
						$oMenu->addItem( extractLanguage( $oRs->aFields['cdMenu'], $this->getLanguage()) , '?ncMenuPadre=' . $ncMenuPadre . '&amp;ncMenu=' . $oRs->aFields['ncMenu'] . '&amp;ac=' . $oRs->aFields['cAccion'] . '&amp;' . $oRs->aFields['cParametros'], 'body', $oRs->aFields['cDescripcion'], $oRs->aFields['bExpandido'] );
					}
				}
			}
		}
	?>
		<div id="menu_superior"></div>
		<div id="menu">
			<?	$oMenu->make() ?>
		</div>
		<div id="menu_inferior"></div>
	</div>
	<div id="body_main" >
		<div id="body_main_superior"></div>
		<div id="body_main_contenido"><? $this->show() ?></div>
		<div id="body_main_inferior"></div>
	</div>
</div>